<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//use Illuminate\Routing\Router;
//Route::get('/', function () {
//    return view('welcome');
//});
//Route::any('/admin',['uses'=>'\App\Admin\Controllers\HomeController@index']);

Route::get('/','IndexController@index'); //首页
Route::get('/{classname}/{page?}','NewsController@index')->where(['classname'=>'(news)|(rjjc)','page'=>'\d+']); //新闻首页
Route::get('/article/{id}/','NewsController@detail')->name('detail.news')->where('id','(\d+)\.html'); //新闻详情
Route::get('/soft/{id}','SoftController@detail')->name('detail.soft')->where('id','(\d+)\.html'); //软件详情
Route::get('/soft/{page?}','SoftController@list')->name('detail.list')->where('page','\d+');; //软件中心